//
//  LXAcount.h
//  微了个小博
//
//  Created by imera on 15/9/22.
//  Copyright (c) 2015年 imera. All rights reserved.

#import <Foundation/Foundation.h>

@interface LXAcount : NSObject<NSCoding>
//访问令牌
@property (nonatomic,copy) NSString *access_token;
//过期时间
@property (nonatomic, assign) long long expires_in;
//过期时间
@property (nonatomic, assign) long long remind_in;
//用户的唯一标示
@property (nonatomic, assign) long long uid;
//过期时间
@property (nonatomic, strong) NSDate *expiresTime;
//用户昵称
@property (nonatomic, copy) NSString *name;

/**
 *  保存用户信息
 *
 */
+ (void)saveAcount:(LXAcount *)acount;

/**
 *  获取用户信息
 *
 */
+ (instancetype)Acount;

/**
 *  初始化模型
 *
 */
+ (instancetype)accountWithDict:(NSDictionary *)dict;

- (instancetype)initWithDict:(NSDictionary *)dict;

@end
